var admin = angular.module('Admin', [
	'ui.router',
	'ngCookies',
	'ui.bootstrap',
	'xeditable'
]);

admin.run(function(editableOptions) {
  editableOptions.theme = 'bs3'; // bootstrap3 theme. Can be also 'bs2', 'default'
});

admin.config(function($stateProvider, $urlRouterProvider,$locationProvider){
	$locationProvider.html5Mode(false).hashPrefix('!');
	$urlRouterProvider.otherwise('/');
	
    $stateProvider
	.state('login', {
		url: "/login",
		templateUrl: "login.html"
	})
	.state('home', {
		url: "/",
		templateUrl: "main.html"
	})	
	.state('home.category', {
		url: "category",
		views: {
			"main": {
				templateUrl: "category.html",
			}
		}
	})
	.state('home.password', {
		url: "password",
		views: {
			"main": {
				templateUrl: "change-password.html",
			}
		}
	})
	.state('home.product', {
		url: "product",
		views: {
			"main": {
				templateUrl: "product.html",
			}
		}
	})
	.state('home.onlineSupport', {
		url: "onlineSupport",
		views: {
			"main": {
				templateUrl: "onlineSupport.html",
			}
		}
	})
	.state('home.gioithieu', {
		url: "gioithieu",
		views: {
			"main": {
				templateUrl: "gioithieu.html",
			}
		}
	})
})




